﻿// 定制 - 搜索房间
namespace MultiWorldLib.Messaging.Definitions.Messages
{

    [MWMessageType(MWMessageType.SearchRoomMessage)]
    public class MWSearchRoomMessage : MWMessage
    {
        public List<(string, string)> searchDTO { get; set; }   //(room,code)
        public MWSearchRoomMessage()
        {
            MessageType = MWMessageType.SearchRoomMessage;
        }
        public MWSearchRoomMessage(List<(string, string)> inSearchDTO)
        {
            searchDTO = inSearchDTO;
            MessageType = MWMessageType.SearchRoomMessage;
        }
    }

    public class MWSearchRoomDefinition : MWMessageDefinition<MWSearchRoomMessage>
    {
        public MWSearchRoomDefinition() : base(MWMessageType.SearchRoomMessage)
        {
            Properties.Add(new MWMessageProperty<List<(string, string)>, MWSearchRoomMessage>(nameof(MWSearchRoomMessage.searchDTO)));
        }
    }
}
